package com.xzh.model.search;

import lombok.Getter;
import lombok.Setter;
import java.util.Date;

@Setter
@Getter
public class ReviewDao {
    private Integer reviewId;
    private Integer studentId;    // 学生ID
    private Integer courseId;     // 课程ID
    private Integer rating;       // 评分
    private String comment;       // 评论内容
    private Date reviewTime;      // 评论时间
    private String status;

    // 默认构造函数
    public ReviewDao() {
        this.reviewTime = new Date(); // 默认设置当前时间
    }

    // 带参数的构造函数
    public ReviewDao(Integer studentId, Integer courseId, Integer rating, String comment) {
        this.studentId = studentId;
        this.courseId = courseId;
        this.rating = rating;
        this.comment = comment;
        this.reviewTime = new Date();
    }
}
